package com.lframework.xingyun.basedata.vo.shop;

import com.lframework.starter.web.core.components.validation.IsCode;
import com.lframework.starter.web.core.components.validation.TypeMismatch;
import com.lframework.starter.web.core.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class CreateShopVo implements BaseVo, Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 编号
   */
  @ApiModelProperty(value = "编号", required = true)
  @NotBlank(message = "请输入编号！")
  @IsCode
  private String code;

  /**
   * 名称
   */
  @ApiModelProperty(value = "名称", required = true)
  @NotBlank(message = "请输入名称！")
  private String name;

  /**
   * 所属部门ID
   */
  @ApiModelProperty("所属部门ID")
  private String deptId;

  /**
   * 经度
   */
  @ApiModelProperty("经度")
  @TypeMismatch(message = "经度格式有误！")
  private BigDecimal lng;

  /**
   * 纬度
   */
  @ApiModelProperty("纬度")
  @TypeMismatch(message = "纬度格式有误！")
  private BigDecimal lat;

  /**
   * 省份(代码)
   */
  @ApiModelProperty("省份(代码)")
  private String province;

  /**
   * 城市(代码)
   */
  @ApiModelProperty("城市(代码)")
  private String city;

  /**
   * 区县(代码)
   */
  @ApiModelProperty("区县(代码)")
  private String area;

  /**
   * 详细地址
   */
  @ApiModelProperty("详细地址")
  private String address;

  /**
   * 备注
   */
  @ApiModelProperty("备注")
  private String description;

  /**
   * 门店微信小程序url
   */
  @ApiModelProperty("门店微信小程序url")
  private String mpUrl;

  /**
   * 门店类型(1-直营; 2-加盟)
   */
  @ApiModelProperty("门店类型")
  private Integer type;

  /**
   * 联系电话
   */
  @ApiModelProperty("联系电话")
  private String telephone;

  /**
   * 营业时间
   */
  @ApiModelProperty("营业时间")
  private String cycleTimeGroup;

}
